<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- -------------------------------------------- -->
<jsp:useBean id="requestBean"
	class="by.ostrovsky.webhousingsystem.bean.data.HousingRequestBean"
	scope="session" />
<c:set var="list" value="${requestBean.entityList}" />
<!-- -------------------------------------------- -->
<legend id="legend">Request</legend>

<form name="editformrequest" method="post">
	<button type="button" onclick="RqBtnSaveDown()"
		class="btn btn-success actionbtnstyle">Save</button>
	<table class="table">
		<tr>
			<td></td>
			<td>Id</td>
			<td>User</td>
			<td>Deadline</td>
			<td>Work</td>
			<td>Phone</td>
			<td>Additional</td>
		</tr>
		<c:forEach items="${list}" var="item" varStatus="i">
			<tr>
				<td><input type="radio" name="selectedEllements"
					value="${i.index}"></td>
				<td><input type="text" class="form-control" name="id"
					value="${item.id}" readonly="readonly"></td>
				<td><input type="text" class="form-control" name="accountId"
					value="${item.account.id}" readonly="readonly"></td>
				<td><input type="text" class="form-control" name="deadline"
					value="${item.deadline}"></td>
				<td><input type="text" class="form-control" name="work"
					value="${item.work}"></td>
				<td><input type="text" class="form-control" name="phone"
					value="${item.phone}"></td>
				<td><input type="text" class="form-control" name="addinfo"
					value="${item.addinfo}"></td>
			</tr>
		</c:forEach>
	</table>
</form>